import request from '@/utils/request'

// 会员卡列表
export function getMemberCards({ pageNum, pageSize }) {
    return request({
        url: `/store/member/list?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET'
    })
}

// 会员卡详情
export function getMemberCardInfo(data) {
    return request({
        url: '/store/member/detail?storeMemberId='+data,
        method: 'GET'
    })
}

// 充值管理会员卡店铺列表
export function getStoreListInMemberSet() {
    return request({
        url: '/store/member/store/list',
        method: 'GET'
    })
}

// 店铺会员设置
export function memberRechargeSet(data) {
    return request({
        url: '/store/member/set',
        method: 'POST',
        data
    })
}

// 会员列表设置是否显示
export function memberRechargeDisplaySet(data) {
    return request({
        url: '/store/member/display',
        method: 'POST',
        data
    })
}

// 团体卡列表
export function getGroupCards({ pageNum, pageSize }) {
    return request({
        url: `/store/group/card/list?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'GET'
    })
}

// 团体卡详情
export function getGroupCardInfo(data) {
    return request({
        url: '/store/group/card/detail?storeGroupId='+data,
        method: 'GET'
    })
}

// 充值管理团体卡店铺列表
export function getStoreListInGroupsSet() {
    return request({
        url: '/store/group/card/store/list',
        method: 'GET'
    })
}

// 店铺团体卡设置
export function groupsRechargeSet(data) {
    return request({
        url: '/store/group/card/set',
        method: 'POST',
        data
    })
}

// 会员列表设置是否显示
export function groupRechargeDisplaySet(data) {
    return request({
        url: '/store/group/display',
        method: 'POST',
        data
    })
}

